import { axios } from '@/utils/request'


//查询手册列表
export function getHandbookList (parameter) {
  return axios({
    url: '/handbook/query',
    method: 'post',
    data: parameter
  })
}


//添加手册
export function createHandbook (parameter) {
  return axios({
    url: '/handbook/insert',
    method: 'post',
    data: parameter
  })
}


//删除手册
export function deleteHandbook (id) {
  return axios({
    url: '/handbook/delete/' + id,
    method: 'post'
  })
}

//更改手册
export function updateHandbook (parameter) {
  return axios({
    url: '/handbook/up/' + parameter.id,
    method: 'post',
    data: parameter
  })
}

//查询手册详情
export function getHandbookDetail (parameter) {
  return axios({
    url: '/handbook/selectById',
    method: 'get',
    data: parameter
  })
}


export function getATableTypeList (parameter) {
  return axios({
    url: '/aTableType/query',
    method: 'post',
    data: parameter
  })
}

export function createATableType (parameter) {
  return axios({
    url: '/aTableType/insert',
    method: 'post',
    data: parameter
  })
}

export function deleteATableType (id) {
  return axios({
    url: '/aTableType/delete/' + id,
    method: 'post'
  })
}

export function updateATableType (parameter) {
  return axios({
    url: '/aTableType/up/' + parameter.id,
    method: 'post',
    data: parameter
  })
}


export function getATableTypeDetail (parameter) {
  return axios({
    url: '/aTableType/selectById',
    method: 'get',
    data: parameter
  })
}

export function getQuerySysDeptList (parameter) {
  return axios({
    url: '/sysDept/query',
    method: 'get',
    data: parameter
  })
}



export function getAWaterQualityList (parameter) {
  return axios({
    url: '/aWaterQuality/query',
    method: 'post',
    data: parameter
  })
}

export function createAWaterQualityList (parameter) {
  return axios({
    url: '/aWaterQuality/insert',
    method: 'post',
    data: parameter
  })
}

export function updateAWaterQualityList (parameter) {
  return axios({
    url: `/aWaterQuality/up/${parameter.id}`,
    method: 'post',
    data: parameter
  })
}

export function deleteAWaterQualityList (id) {
  return axios({
    url: `/aWaterQuality/delete/${id}`,
    method: 'post'
  })
}